package org.ITschool.dwr.utilcontroller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.ITschool.support.util.CommonTime;
import org.ITschool.support.util.UploadFile;
import org.directwebremoting.WebContext;
import org.directwebremoting.WebContextFactory;

import net.sf.json.JSON;
import net.sf.json.JSONObject;

public class uploadFile {
  /* public JSON uploadfile(){
	  // HttpServletRequest request=(HttpServletRequest)WebContextFactory.get();
	   WebContext webContext=WebContextFactory.get();
	   HttpServletRequest request=webContext.getHttpServletRequest();
	   HttpServletResponse response=webContext.getHttpServletResponse();
	   UploadFile uploadFile=new UploadFile();
	   String uString=uploadFile.upload(request, response, "temp/file/", CommonTime.getCurrentDateTime());
	   JSONObject json=new JSONObject();
	   json.put("data1", uString);
	   return json;
	   //HttpServletResponse response=request.getr
   }*/
}
